<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="utf-8">
	<title>jQuery demo 1</title>
	<script src="jquery-1.4.2.js"></script>
	<script type="text/javascript">
   		function getValue(){
   			var value = $("#test").val();
   			alert(value);
   		}
    </script>
</head>
<body>

<input type="text" id="test" />
<input type="button" onclick="getValue()" value="狠狠地点击我显示输入框里的值" />

</body>
</html>
